package com.cloudbroker.bcs.platform.dav.bizapi.service.business.favorite.vo;

import javax.validation.constraints.Size;

import com.cloudbroker.bcs.common.validatioin.annotation.IntegerString;
import com.cloudbroker.bcs.common.validatioin.annotation.NotBlank;
import com.cloudbroker.bcs.common.validatioin.constants.ValidationConstants;
import com.cloudbroker.bcs.platform.dav.bizapi.service.base.vo.HSBCPSVO;

public class FavoriteBaseForm extends HSBCPSVO {

	private static final long serialVersionUID = 2224893683670740384L;

    @NotBlank
    @IntegerString
	@Size(max = 20,message = ValidationConstants.MSG_MAXCHARLEN)
	protected String position_str;

    @NotBlank
	@IntegerString
	@Size(max = 5,message = ValidationConstants.MSG_MAXCHARLEN)
	protected String request_num;

    @NotBlank
	@IntegerString
	@Size(max = 5,message = ValidationConstants.MSG_MAXCHARLEN)
	protected String page_no;

	public String getPage_no() {
		return page_no;
	}

	public void setPage_no(String page_no) {
		this.page_no = page_no;
	}

	public String getPosition_str() {
		return position_str;
	}

	public void setPosition_str(String position_str) {
		this.position_str = position_str;
	}

	public String getRequest_num() {
        return request_num == null ? "10" : request_num;
    }

	public void setRequest_num(String request_num) {
		this.request_num = request_num;
	}

}
